home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
bbs
/
bbsc61.zip
/
BBSCHAT.DOC
next >
Wrap
Text File
|
1996-05-26
|
13KB
|
361 lines
BBSCHAT
Version 6.1
Written by Matthew Probert
Published by Servile Software
NOTE:
Two executable files are supplied in the package: BBSCHAT.EXE and
FSCHAT.EXE. FSCHAT.EXE will make use of ANSI to provide a nice split
screen environment. BBSCHAT.EXE will work even if the caller does not
support an ANSI terminal. Throughout this document you may optionally
replace "bbschat" with "fschat", the programs are otherwise identical.
DESCRIPTION:
BBSChat is a PC BBS chat door system for BBS which generate a DOOR.SYS
file - such as Remote Access for example. BBSChat is loosely based
upon the BBS door "SHAMpage" by Rich Waugh of Drawbridge BBS. SHAMpage
response files may be used with only slight modification by BBSChat.
(See CONVERTING FROM SHAMPAGE TO BBSCHAT).
Although I have been developing computer conversation systems for a
couple of years, I decided to clone SHAMpage because although its
good, I was frustrated by the limitations imposed by it which made it
too obviously a computer, the logoff screen with its copyright message
for a start!
There are two ways of looking at BBSChat. Firstly as entertainment.
Secondly as a system for experimenting with Turing's theory of
thinking computers. By careful selection of responses and key words, a
configuration can be developed which appears to be quite intelligent.
However, BBSChat is still only a slot-and-frame parser!
IMPORTANT: BBSChat will make use of ANSI if the caller has it enabled,
but if not will work perfectly well in monochrome. No sysop
adjustments are necessary.
IN BRIEF:
BBSChat is started from the command line with two required parameters
and two optional parameters. The first parameter is the name and path
to your BBS information file; DOOR.SYS. The second parameter is the
path and name to the configuration file to use for this personality.
For example:
BBSCHAT C:\RA\DOOR.SYS HARRY.CFG [port][fossil]
IMPORTANT! BBSChat will assume that COM1 = 03F8 IRQ 4, COM2 = 02E8
IRQ3, COM3 = 03E8 IRQ4 and COM4 = 02E8 IRQ 3 These are the standard
COM port addresses and IRQ levels.
Upon starting, BBSChat may display "Paging <name>" if the paging
option is active in the configuration file, and there is then a
randomly generated delay before the conversation commences by
displaying one of the "opening lines" selected at random. The user and
the computer then take turns to present typed text to each other, like
a conversation. BBSChat responds through "replies" contained in the
configuration file which are selected based upon matching of key words
and phrases in the users input with those contained in the data file.
Keywords are matched on a first come first served basis. So specific
keyword phrases should occur at the start of the data file, with more
general keywords towards the end.
Should the user not make any keyboard entry for 5 minutes, or if the
user's allocated time expires BBSChat will terminate and return to the
BBS.
If the caller has ANSI enabled, BBSChat will display the caller's
prompts and text in yellow, and the computers's in cyan. Otherwise
both will be in monochrome. BBSChat detects and adjusts for the
caller's ANSI settings automatically.
The results of the conversation are added to the end of the file
"chat.log" in the current directory.
LIMITS:
Opening lines 50
No match responses 100
Data blocks 300
Aliases 10 per data block
Responses 20 per data block
VARIABLES:
Within the reply text in the data file various variables may be
included which will be expanded during the conversation.
*DELAY* Pause for one second
*END* Force end of conversation, displaying "fed up message".
*USER* Caller's first name
*CITY* Caller's city
*PHONE* Caller's home phone number
*LAST* Last phrase (thread) output by the computer
*SEC* The caller's security level
*TIME* Current time is inserted
*LF* Line is split, carriage return and line feed inserted
*TIMEOFDAY* MORNING, AFTERNOON or EVENING inserted as appropriate
*timeofday* morning, afternoon or evening inserted as appropriate
*Keyword* The matched keyword is inserted with first letter capitalised
*KEYWORD* The matched keyword is inserted capitalised
*keyword* The matched keyword is inserted as it was typed by the user
*Object* The object is inserted with first letter capitalised
*OBJECT* The object is inserted capitalised
*object* The object is inserted as it was typed by the user
*next* The word following the last matched keyword is inserted as
it was typed by the user
DATA FILE STRUCTURE:
; optional comment lines
N Number of opening lines
XXXX Opening line 1
XXXX Opening line 2
; Then the "no match responses"
NOMATCH
N Number of responses for non-matched words
XXXX Non-matched response 1
XXXX Non-matched response 2
; Finally the data blocks
THREAD The last phrase the computer output (maximum of 80 characters)
KEYWORD Keyword or phrase
*ALIAS* An alias key word for this section
N Number of responses in this section
XXXX Response 1
Please refer to the supplied demonstration file 'HARRY.DAT' for an
example of the data file in practice.
Replies are what BBSChat will display in response to user entered data
and are terminated by a carriage-return/line feed in the configuartion
file. Keywords and aliases MUST be in upper case Any line commening
with ; is ignored. Variables may be inserted in any response, except
that: keyword variables may not be used in either opening or non-
matched responses
When the user enters some text, BBSChat searches the text for each
keyword and then associated aliases in turn. Keywords/aliases are
matched if they occur in the entered text. So it is important to
include spaces around words you want to match in full, for example:
NO will match with NO, NOW, NOTHING etc
but
" NO " will only match with NO
Keywords/aliases may be multiple words, and quote marks are ignored,
eg:
"WHAT IS THE TIME"
When BBSChat matches a keyword/alias it ouputs one of the recorded
responses at random. That response is then deleted from memory. If
there are no responses to be made, BBSChat searches for the next
matching keyword or phrase. When all matching keywords have been
exhausted a NOMATCH response is selected at random and output. If
there are no responses left to be made, BBSCHAT terminates the
conversation. If a match cannot be made with the users input, one of
the NOMATCH responses is output in the same way.
For example:
Consider a simple personality file thus:
;----------------------------------------------------------------------------
;
; These are the opening lines which are generated randomly.
;
;----------------------------------------------------------------------------
3
Opener 1
Opener 2
Opener 3
;----------------------------------------------------------------------------
;
; These are lines sent when no keyword match occurs.
;
;----------------------------------------------------------------------------
NOMATCH
5
Random 1
Random 2
Random 3
Random 4
Random 5
;----------------------------------------------------------------------------
LIFE
3
Life response 1
Life response 2
Life response 3
;----------------------------------------------------------------------------
BITCH
3
Bitch response 1
Bitch response 2
Bitch response 3
When the human caller enters the phrase "Life's a bitch", BBSCHAT will search
and make a match on the word "LIFE" and ouput one of the three life responses
at random. The second time the caller enters the phrase one of the remaining
two life responses will be output and so on. When all three life responses
have been output